package com.lkd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author: Z.lx
 * @Date: 2025/8/17 09:13
 * @Description:
 **/
@Data
@TableName("tb_sku")
public class Sku {
    @TableId(type= IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;// SKU ID
    private String skuName;// SKU名称
    private String skuImage;// 图片
    private Integer price;// 价格
    private String classId;//类别ID
    private Integer isDiscount;// 是否打折
    private String unit;// 单位
    private String brandName;//品牌名称
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;// 创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;// 更新时间
}
